<!DOCTYPE HTML>
<html>

<head>
  <meta charset="UTF-8">
  <title>WebSocket Demo</title>
</head>

<body>
  <input id="text" type="text" />
  <button onclick="send()">发送消息</button>
  <button onclick="closeWebSocket()">关闭连接</button>
  <div id="message">
  </div>
</body>
<script type="text/javascript">
  //发送一个请求

</script>

</html>